package org.summer.lawyer.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.summer.common.mybatis.core.mapper.BaseMapperPlus;
import org.summer.lawyer.domain.Spu;
import org.summer.lawyer.domain.vo.spu.SpuDetailVo;
import org.summer.lawyer.domain.vo.spu.SpuVo;

import java.util.List;

/**
 *
 */
@Mapper
public interface SpuMapper extends BaseMapperPlus<Spu, SpuVo> {

    Page<SpuVo> selectPageSpuList(@Param("page") Page<Spu> page, @Param(Constants.WRAPPER) Wrapper<Spu> queryWrapper);

    Page<SpuDetailVo> selectPageSpuDetailList(@Param("page") Page<Spu> page, @Param(Constants.WRAPPER) Wrapper<Spu> queryWrapper);

    List<SpuDetailVo> selectSpuDetailList(@Param(Constants.WRAPPER) Wrapper<Spu> queryWrapper);

    SpuDetailVo selectSpuDetailVoById(@Param(Constants.WRAPPER) Wrapper<Spu> queryWrapper);
}